package com.southwind.springboottest.study.java中正则表达式;

import java.util.regex.Pattern;

/**
 * @description：TODO
 * @author： HXG
 * @create： 2024/4/19 9:48
 */


public class Main1 {
    public static void main(String[] args) {
        String text = "Hello, world!";
        String pattern = "Hello.*";
        boolean isMatch = Pattern.matches(pattern, text);
        System.out.println("Is there a match? " + isMatch);
    }
}

